﻿using App.Chat.Models;
using System.ComponentModel.DataAnnotations;
using Zws.AutoMapper;

namespace App.Chat.Contract.Input
{
    [CreateMapper(typeof(User))]
    public class UserAddInput
    {
        [Required]
        [StringLength(15, MinimumLength = 3, ErrorMessage = "用户名格式错误")]
        public string UserName { get; set; }
        [Required]
        [StringLength(15, MinimumLength = 8, ErrorMessage = "密码格式错误")]
        public string Password { get; set; }
    }
}
